package com.huike.web.controller.clues;

import com.huike.clues.domain.dto.ClueRecordDto;
import com.huike.clues.service.ITbClueService;
import com.huike.common.core.controller.BaseController;
import com.huike.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/clues/record")
public class ClueRecordController extends BaseController {

    @Autowired
    private ITbClueService tbClueService;



    @RequestMapping("/list")
    public TableDataInfo getCluesRecord(@RequestParam Long clueId){
        List<ClueRecordDto> clueRecordDtoList = tbClueService.selectCluesRecordByClueId(clueId);
        TableDataInfo dataTable = getDataTable(clueRecordDtoList);
        return dataTable ;
    }
}
